add_definitions(-DDUNE_DEPRECATED_INTERPOLATE_CHECK=1)

dune_add_test(SOURCES bdfmelementtest.cc)

dune_add_test(SOURCES brezzidouglasmarinielementtest.cc)

dune_add_test(SOURCES crouzeixraviartelementtest.cc)

dune_add_test(SOURCES dualmortarelementtest.cc)

dune_add_test(SOURCES hierarchicalelementtest.cc)

dune_add_test(SOURCES testgenericfem.cc)

dune_add_test(SOURCES lagrangeshapefunctiontest.cc)

dune_add_test(SOURCES monomialshapefunctiontest.cc)

dune_add_test(SOURCES nedelec1stkindelementtest.cc)

dune_add_test(SOURCES rannacherturekelementtest.cc)

dune_add_test(SOURCES raviartthomaselementtest.cc)

dune_add_test(SOURCES refinedelementtest.cc)

dune_add_test(SOURCES virtualshapefunctiontest.cc)

dune_add_test(SOURCES test-edges0.5.cc)

dune_add_test(SOURCES test-finiteelementcache.cc)

dune_add_test(SOURCES globalmonomialfunctionstest.cc)

dune_add_test(SOURCES test-pk2d.cc)

dune_add_test(SOURCES test-power-monomial.cc)

dune_add_test(SOURCES test-q1.cc)

dune_add_test(SOURCES test-q2.cc)

dune_add_test(NAME test-lagrange1
              SOURCES test-lagrange.cc
              COMPILE_DEFINITIONS "CHECKDIM=1")

dune_add_test(NAME test-lagrange2
              SOURCES test-lagrange.cc
              COMPILE_DEFINITIONS "CHECKDIM=2")

dune_add_test(NAME test-lagrange3
              SOURCES test-lagrange.cc
              COMPILE_DEFINITIONS "CHECKDIM=3")

dune_add_test(NAME test-lagrange4
              SOURCES test-lagrange.cc
              COMPILE_DEFINITIONS "CHECKDIM=4"
              TIMEOUT 600)

dune_add_test(NAME test-orthonormal1
              SOURCES test-orthonormal.cc
              COMPILE_DEFINITIONS "CHECKDIM=1")

dune_add_test(NAME test-orthonormal2
              SOURCES test-orthonormal.cc
              COMPILE_DEFINITIONS "CHECKDIM=2")

dune_add_test(NAME test-orthonormal3
              SOURCES test-orthonormal.cc
              COMPILE_DEFINITIONS "CHECKDIM=3")

dune_add_test(NAME test-orthonormal4
              SOURCES test-orthonormal.cc
              COMPILE_DEFINITIONS "CHECKDIM=4")

dune_add_test(NAME test-raviartthomassimplex1
              SOURCES test-raviartthomassimplex.cc
              COMPILE_DEFINITIONS "CHECKDIM=1")

dune_add_test(NAME test-raviartthomassimplex2
              SOURCES test-raviartthomassimplex.cc
              COMPILE_DEFINITIONS "CHECKDIM=2")

dune_add_test(NAME test-raviartthomassimplex3
              SOURCES test-raviartthomassimplex.cc
              COMPILE_DEFINITIONS "CHECKDIM=3")

dune_add_test(NAME test-raviartthomassimplex4
              SOURCES test-raviartthomassimplex.cc
              COMPILE_DEFINITIONS "CHECKDIM=4")
